package org.jeecg.modules.wlhy.shiboetc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.wlhy.shiboetc.ShiboEtcReport;
import org.jeecg.modules.wlhy.shiboetc.ShiboEtcReportDTO;
import org.jeecg.modules.wlhy.shiboetc.mapper.HyShiboectReportMapper;
import org.jeecg.modules.wlhy.shiboetc.service.IHyShiboectReportService;
import org.jeecg.modules.wlhy.shipping.entity.HyShippingNoteDTO;
import org.jeecg.modules.wlhy.shipping.entity.shiboHyShippingNoteExportXlsDTO;
import org.jeecg.modules.wlhy.shipping.mapper.HyShippingNoteMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 视博etc与运单关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-04
 */
@Service
public class HyShiboectReportServiceImpl extends ServiceImpl<HyShiboectReportMapper, ShiboEtcReport> implements IHyShiboectReportService
{
    @Autowired
    private HyShiboectReportMapper hyShiboectReportMapper;

    @Autowired
    private HyShippingNoteMapper hyShippingNoteMapper;



    @Override
    public Integer getCount(String shippingNodeId) {
        return hyShiboectReportMapper.getCount(shippingNodeId);
    }

    @Override
    public IPage<ShiboEtcReportDTO> getShiboEtcList(Page<ShiboEtcReportDTO> page, QueryWrapper<ShiboEtcReportDTO> queryWrapper) {
        IPage<ShiboEtcReportDTO> pageList = hyShippingNoteMapper.getShiboEtcList(page, queryWrapper);
        return pageList;
    }

    @Override
    public ShiboEtcReport getInfoByShippingId(String shippingNodeId) {
        return hyShiboectReportMapper.getInfoByShippingId(shippingNodeId);
    }
    @Override
    public IPage<ShiboEtcReportDTO> getShiboEtcList1(Page<ShiboEtcReportDTO> page, QueryWrapper<ShiboEtcReportDTO> queryWrapper) {
        IPage<ShiboEtcReportDTO> pageList = hyShippingNoteMapper.getShiboEtcList1(page, queryWrapper);
        return pageList;
    }

    @Override
    public List<shiboHyShippingNoteExportXlsDTO> getshiboExportXlsList(QueryWrapper<HyShippingNoteDTO> queryWrapper) {
        return hyShippingNoteMapper.getshiboExportXlsList(queryWrapper);
    }
}
